const users = require('./users')
module.exports =app=>{
  for (const key in users) {
    if (Object.hasOwnProperty.call(users, key)) {
      const e = users[key];
      switch (e.type) {
        case 'post':
          app.post(e.api,e.method)
          break;
          case 'get':
          app.get(e.api,e.method)
          break;
      }
    }
  }
};
